<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
	a{
		text-decoration: none;
	}
	a:visited {
		
		color: #0000EE;
	}
	.mytable{

    border:1px solid #A6C1E4;

    font-family:Arial;

    border-collapse: collapse;

}

table th{

    border:1px solid black;

    background-color:#71c1fb;

    width:100px;

    height:20px;

    font-size:15px;

}

table td{

    border:1px solid #A6C1E4;

    text-align:center;

    height:15px;

    padding-top:5px;

    font-size:12px;

}
body {
    background-image: url("show/images/pageturner.png");
    background-repeat: no-repeat;
}
 

.double{

    background-color:#c7dff6;

}
	</style>
</head>
<body>
<a href="user/InputUser.jsp">添加用户</a>
<table class="mytable"align="center" width="1000" border="1">
	<caption><b>用户信息</b></caption>
	<tr>
		<th>登录账号</th>
		<th>登录密码</th>
		<th>真实姓名</th>
		<th>用户电话</th>
		<th>用户身份</th>
		<th>操作</th>
	</tr>
	
	<c:forEach items="${list }" var="user">
		<tr class="double">
		<td>${user.username }</td>
		<td>${user.userpass }</td>
		<td>${user.realname }</td>
		<td>${user.phonenumber }</td>
		<td>${user.status }</td>		
		<td><a href="EditServlet?username=${user.username }">编辑</a>||
			<a href="DeleteServlet?username=${user.username }" onclick="return confirm('确定删除该用户吗？');">删除</a>
		</td>
		</tr>
	</c:forEach>

	

</table>
</body>
</html>